home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / minix-faq < prev    next >
Text File  |  1995-07-25  |  20KB  |  428 lines

  1. Subject: MINIX Frequently Asked Questions (Last Changed: 08 August 1994)
  2. Newsgroups: comp.answers,comp.os.minix,news.answers
  3. From: overby@cray.com (Glen Overby)
  4. Date: 15 Nov 94 06:29:56 CST
  5.  
  6. Archive-name: minix-faq
  7. Version: $Id: minix-faq,v 1.14 1994/08/13 17:12:17 overby Exp overby $
  8.  
  9. If you have questions AND ANSWERS to contribute to this FAQ sheet,
  10. please send them to me, overby@cray.com.  I'm looking for
  11. contributions to this FAQ, not questions from people who expect me to
  12. give them answers.
  13.  
  14.                  Frequently Asked Questions on Comp.Os.MINIX
  15.  
  16. This Frequently Asked Questions (FAQ) list is intended to accompany the
  17. Minix Information Sheet.  Some of the information here is duplicated from
  18. the Information Sheet when deemed appropriate.
  19.  
  20. In creating this, I have attempted to recall the Great Questions (and their
  21. answers) as well as the Great Discussions from the net.  Many thanks to
  22. everyone who has contributed to this document.
  23.  
  24. Several things to remember when you ask questions on the net:
  25.  
  26.       Supply enough information for people to actually help you.  Things
  27.       like what Minix version, your hardware configuration, and so-on are
  28.       almost always necessary to not have to take shots in the dark.  If you
  29.       are reluctant to tell any or all of this, don't expect a good answer.
  30.  
  31.       There are some questions for which there is no answer, because nobody
  32.       has encountered the problem previously or there is no good solution to
  33.       the problem.
  34.  
  35. 1.  WHERE CAN I GET MINIX?
  36.      Minix is sold by Prentice-Hall, Inc. and  their  authorized  distribu-
  37.      tors.  They hold the Copyright on Minix, and sell it for profit (or at
  38.      least we assume they make a profit on it).
  39.  
  40.                      IT IS NOT AVAILABLE FOR ANONYMOUS FTP!
  41.  
  42.      However, demonstration versions for the IBM PC, Atari ST, and Amiga 
  43.      exist and are available via FTP from ftp.cs.vu.nl, plains.nodak.edu 
  44.      and other archive sites. It is also available from Prentice-Hall for
  45.      a small fee (see the Minix information sheet for more details & ISBN
  46.      number).  The Amiga version is available onf "Fish Disk" number 525,
  47.      available from large Amiga FTP sites {don't ask me which ones and
  48.      where -- Glen}, users groups and some retailers.  While far from a 
  49.      working system, the demo is sufficient to get a "feeling" of what 
  50.      Minix does.
  51.  
  52. 2.  WHAT VERSIONS OF MINIX EXIST?  
  53.      The most current version is 1.5.10, known simply as "1.5" if you buy it
  54.      from Prentice-Hall.  Upgrade "diffs" have been posted to the net over
  55.      the past several months; consult an archive site listed in the
  56.      Information Sheet to find that.  Prentice-Hall has been shipping ALL
  57.      versions of Minix 1.5 for several months.
  58.  
  59.      !!!!! PRENTICE HALL IS SHIPPING 1.5.10, BUT THEY CALL IT 1.5 !!!!!
  60.  
  61. 3.  BUT I'VE HEARD OF THIS A NEWER VERSION, 1.6.25.
  62.      Yes, that exists, but it is not sold by Prentice-Hall (yet). It 
  63.      is available as a set of patches against 1.5 from the several
  64.      archives. There are only PC and Atari versions yet, it has not
  65.      been ported to the Mac, Amiga, or Sparc. 
  66.  
  67.      For PCs with at least a 386 processor there is also a version
  68.      called Minix-386vm 1.6.25 (see question 11)
  69.  
  70. 4.  HOW DOES PDP 11/44 MEMORY MANAGEMENT WORK?
  71.      This was the first big off-the-topic discussion on the group, and it's
  72.      still  not  an  appropriate topic, so if you are still intrigued about
  73.      pdp-11 memory management, consult the DEC processor handbooks, or some
  74.      harmless newsgroup like alt.dev.null.
  75.  
  76. 5.  PLEASE SUBSCRIBE ME TO THE MAILING LIST
  77.      Why ask 26,000 people to do that, when there is one person who can,
  78.      and you can ask a computer to do it for you?
  79.  
  80.      If you are on bitnet or arpanet, you can get this newsgroup via a
  81.      mailing list, info-minix.  To subscribe to the list, send a message to
  82.      listserv@vm1.nodak.edu (internet) or listserv@ndsuvm1 (bitnet) saying:
  83.  
  84.                signup minix-l your_full_name
  85.  
  86.      If you have trouble, contact the listserv maintainer at
  87.      postmaster@vm1.nodak.edu
  88.  
  89. 6.  PLEASE UNSUBSCRIBE ME FROM THE MAILING LIST
  90.      Use the same procedure as for subscribing, but use  "unsubscribe"  in-
  91.      stead of "signup".
  92.  
  93. 7.  WHAT IS THE ROOT PASSWORD?
  94.      It's in the book, on pages 373 (login "ast") and 380  (login  "root").
  95.      If you didn't buy the book, that's only the start of your problems.
  96.  
  97. 8.  MINIX DOESN'T WORK WITH MY HARD DISK.
  98.      There are many potential sources of this.  Several are:
  99.  
  100.      You are running an RLL controller on an XT.  You must change
  101.      "NR_SECTORS" in the configuration  file,  <minix/config.h>  from
  102.      17 (standard for MFM controllers) to 25 (Adaptec controllers) or
  103.      26 (Western Digital and  others).
  104.  
  105. 9.  IS THERE A SCSI DRIVER FOR MINIX?
  106.      The following info applies only to PCs.
  107.  
  108.      All SCSI controllers work differently, from the primitive Seagate ST01,
  109.      to the smarter Always IN-2000, and Adaptec with it's own on-board CPU.
  110.  
  111.      Magnus Doell has released his driver for the ST-02, and James da
  112.      Silva has written one for the Adaptec 154X.  They can be found
  113.      on plains.nodak.edu in, respectively,
  114.         pub/Minix/pc/scsi07a.tar.Z
  115.         pub/Minix/usenet/1991.Jul/ahascsi1.0.shar
  116.  
  117.      The ROM wini driver should also run most SCSI controllers but you
  118.      lose protected mode capability.
  119.  
  120.      Amiga Minix has support for Commodore SCSI hard disks in the v1.5.10.1
  121.      update.
  122.  
  123.      Minix-386-vm also includes a SCSI driver.
  124.  
  125. 9A.  WHAT TAPE DRIVES WORK WITH MINIX?
  126.      Minix comes from Prentice Hall with no support for tape drives.
  127.  
  128.      For the PC, James da Silva has written a SCSI driver for Adaptec
  129.      154X type controllers (see section on SCSI support).  This driver
  130.      provides support for SCSI tape drives; there are reports of
  131.      people successfully using it with Archive Viper tape drives (NB:
  132.      not all Archive Viper drives have a SCSI interface!)
  133.  
  134. 10.  THE SINGLE THREADED FILESYSTEM IS A REAL BOTTLENCK.
  135.      True.  It's only noticeable when you  are  running  massive  background
  136.      processes, or putting multiple users on your computer.
  137.  
  138.      This "problem" has been recently "fixed" and the "solution" posted to
  139.      the net.  See your nearby bit-bucket (archive site) for it!
  140.  
  141.      You've got the source.  Fix it.
  142.  
  143. 11.  IS THERE A 386 MINIX?
  144.      Minix 1.5.10/PC runs on 80286 and 80386 systems using 80286  protected
  145.      mode  (so  all  your memory is used for programs, rather than as bank-
  146.      switched memory "windows" or a big RAM disk).  There is an  experimen-
  147.      tal   32-bit   kernel   from   Bruce  Evans.   It  is  available  from
  148.  
  149.      sirius.ucs.adelaide.edu.au: pub/minix/local
  150.      plains.nodak.edu:pub/Minix/oz
  151.  
  152.      There is also the Minix-386vm package by Philip Homburg and Kees
  153.      Bot. Some of its features are:
  154.  
  155.          * Supports paging (so you can run programs larger than memory)
  156.  
  157.          * Long (60 characters) file names.
  158.  
  159.          * TCP/IP.
  160.  
  161.          * Pseudo-Terminals
  162.  
  163.          * Asynchroneous I/O.
  164.  
  165.          * Many utilities replaced by better versions.
  166.  
  167.          * X11R5.
  168.  
  169.      For  details, get the manual pages from 
  170.  
  171.           ftp.cs.vu.nl:/pub/Minix-386vm
  172.           ftp.vmars.tuwien.ac.at:/pub/minix/Minix-386vm
  173.  
  174.      and read the usage.8 manual page.
  175.  
  176. 12.  I HAVE AN OLD VERSION OF MINIX. HOW CAN I UPGRADE?
  177.      You need to get an upgrade kit from one of the archive sites; see  the
  178.      Minix  Information  Sheet  for  a  (supposedly) complete list of sites
  179.      which archive Minix-related bits.
  180.  
  181.      Also, read the Upgrading Tutorial -- it was meant to help.
  182.  
  183. 13.  WHAT SHELLS EXIST FOR MINIX?
  184.      sh:     Your typical Bourne shell. Comes with distribution Minix
  185.      clam:   Tcsh-like shell, runs under Minix & real Unix's. Available
  186.              from ftp sites sirius, ccadfa, plains & others
  187.      ksh:    Korn shell, ported to Minix. Diffs for Minix on plains.
  188.      marvin: A kid's shell. Posted months ago in comp.os.minix.
  189.      emacs:  Does this count as a shell? Works only under 68K-Minix's
  190.              and perhaps 386-Minix.
  191.      tcsh:   The binaries for 68K-Minix and 386-Minix tcsh are available
  192.              from ftp.uni-koeln.de.  The v6.02 tcsh source distribution
  193.              contains configuration information for 386-Minix systems.
  194.  
  195. 14.  IS THERE X-WINDOWS FOR MINIX?
  196.      Not for standard Minix.  It would be difficult if not impossible
  197.      (that  was meant as a challenge!) to put X on Minix because X is
  198.      huge.  Unless you have many megabytes of memory, it would be
  199.      impossible to run X clients and  servers  on  one  machine.  It
  200.      will also certainly require 32-bit mode operation.
  201.  
  202.      Minix-386vm, however, does support X11R5 (see question 11).
  203.  
  204.      Don't be fooled by Mini-X. This is just an EGA- or VGA-graphics
  205.      driver and a windowing library for Minix-PC. The API is similar to
  206.      X11 (but not identical), so porting X programs might be easy. It
  207.      is not possible to run several programs using it at once, however.
  208.  
  209.      There is also a port of MGR, but I don't know about its current
  210.      status.
  211.  
  212. 15.  WHY CAN'T MY PC BOOT PC-MINIX FROM 1.44MB FLOPPY DISKS ?
  213.      There's a couple of reasons for this.  First, straight out of the box,
  214.      MINIX  doesn't  plan on dealing with 1.44Mb floppy disks.  The entries
  215.      in /dev should be set up specifically for your machine,  so  pick  out
  216.      the correct entries here:
  217.           mknod /dev/fd0-dsdd5in b 2  4 360               # Drive A, 360K 5.25"
  218.           mknod /dev/fd0-dshd5in b 2  8 1200              # Drive A, 1.2M 5.25"
  219.           mknod /dev/fd0-dsdd3in b 2 16 720               # Drive A, 720K 3.5"
  220.           mknod /dev/fd0-dshd3in b 2 28 1440              # Drive A, 1.44M 3.5"
  221.                      ^^^             ^^
  222.      Change 'fd0' to 'fd1' and add 1 to the minor device number  to  create
  223.      an entry for floppy drive B.  It may be a good idea to link the gener-
  224.      ic  floppy  disk  entries  (/dev/fd0  and  /dev/fd1)  to  the   proper
  225.      /dev/fd0-ds{whatever}  entries for your machine, so that programs like
  226.      dosread continue to work.
  227.  
  228.      All possible formats are:
  229.         mknod /dev/fd0  b 2  0    0       # Drive A, automatic
  230.         mknod /dev/pc0  b 2  4  360       # Drive A, 360K 5.25"
  231.         mknod /dev/at0  b 2  8 1200       # Drive A, 1.2M 5.25"
  232.         mknod /dev/qd0  b 2 12  360       # Drive A, 360K in a 720K 5.25"
  233.         mknod /dev/ps0  b 2 16  720       # Drive A, 720K 3.5" and 5.25"
  234.         mknod /dev/pat0 b 2 20  360       # Drive A, 360K in a 1.2M 5.25"
  235.         mknod /dev/qh0  b 2 24  720       # Drive A, 720K in a 1.2M 5.25"
  236.         mknod /dev/PS0  b 2 28 1440       # Drive A, 1.44M 3.5"
  237.  
  238.      Second reason your PC won't boot from 1.44Mb floppy disks, even though
  239.      you've  fixed  up  the  floppy  disk  device entries: tools/bootblok.s
  240.      doesn't know about 1.44M disks, so it blindly loads the boot image in-
  241.      correctly  and  then tries to execute it.  Get Guy Helmer's bootblok.s
  242.      from an archive site, or get shoelace.
  243.  
  244. 16.  WHAT'S WRONG WITH 'ps'?
  245.      You   need   to   have   a   copy   of   the   compiled   kernel    in
  246.      /usr/src/kernel/kernel, mm in /usr/src/mm/mm, and fs in /usr/src/fs/fs
  247.      for ps to read the namelist out of.  The PC Minix compiler must have the
  248.      "-s" flag to build the symbol table.  Note that this MUST be the SAME
  249.      kernel that is booted.
  250.  
  251. 17.  HOW IS THE FORK(2) SYSTEM  CALL  IMPLEMENTED  ON  THE  68K  PROCESSORS
  252.      WITHOUT A MEMORY MANAGEMENT UNIT?
  253.      This is done by shadowing. This is copying the memory around  as  long
  254.      as  both  child  and parent processes do exist.  Although this seems very
  255.      expensive, it is not because most processes exec(2) almost immediately
  256.      after  the fork(). But most terminal emulators who fork() en keep run-
  257.      ning loose.
  258.  
  259. 18.  WHY IS KERMIT SO ABSURDLY SLOW UNDER MINIX-68k?
  260.      See the above question.  Kermit forks so that one process  listens  to
  261.      the  serial  port  and  writes  to  the  screen, and the other process
  262.      listens to the keyboard and writes to  the  serial  port.   Since  the
  263.      second  process  never  "exec's",  the  two  processes are continually
  264.      swapped in and out of one memory slot.
  265.  
  266. 19.  IS THERE ALSO A 64K+64K LIMIT FOR MINIX 68K & MINIX 386?
  267.      For minix 68k, there isn't. For minix 386 there isn't provided you use
  268.      the proper compiler (This means no ACK)
  269.  
  270. 20.  DOES MINIX HAVE BERKELY JOB CONTROL?
  271.      No. Nor does it have its associated signals like SIGSTOP, SIGCONT etc.
  272.  
  273. 21.  DOES MINIX SUPPORT TCP/IP AND NFS
  274.      Not out of the Box. TNET4 is a TCP/IP implementation for Minix-PC.
  275.      Minix-386vm includes TCP/IP (this is also available as patches
  276.      relative to Minix 1.6.25).
  277.  
  278.      NFS does not exist.
  279.  
  280. 22.  WHY CAN'T I RECOMPILE KERMIT OR ELLE ON PC-MINIX 1.5?
  281.      You can't assemble Kermit or elle on a PC using Minix 1.5 or  earlier;
  282.      asld  reports an "out of space" error, which means it ran out of space
  283.      in the output object file.  That is why the  binaries  are  (certainly
  284.      were) on the P-H distribution.  Those binaries were compiled by a dif-
  285.      ferent, more efficient compiler.
  286.  
  287. 23.  WHY AREN'T THE MANUALS ONLINE? WHERE CAN I GET THE MANUALS?
  288.      The online manuals are available via anonymous ftp from
  289.      ftp.vmars.tuwien.ac.at (128.130.39.16) in the file 
  290.      /pub/minix/net/manpages.tar.Z.  To extract the manuals, ftp the
  291.      file binary-wise, uncompress it and extract using tar when you
  292.      are in your /usr/man directory. Each manual is in a separate
  293.      file, and to use the distribution 1.5 man(1) you will need to
  294.      read the source to man(1) to see how to create the single manual
  295.      file.
  296.  
  297.      Alternatively, the source to a more Unix-like man(1) is  available  on
  298.      ccadfa  in  the  file  pub/minix/mansrc.Z.  To  extract  the code, ftp
  299.      binary-wise, uncompress and unshar. Before compiling the code,  modify
  300.      the header file to reflect your system setup. Compile the code. If you
  301.      are using less(1) as a pager,  you  will  need  to  modify  main.c  in
  302.      nroff(1); instructions are included in mansrc.Z
  303.  
  304. 24.  WHAT IS THE DIFFERENCE BETWEEN THE 80386 AND THE 386sx?
  305.      There is no difference between 386sx/386dx except for the bus  (24-bit
  306.      addresses and 16-bit data).
  307.  
  308. 25.  DOES MINIX SUPPORT MAIL/NEWS/UUCP?
  309.      As shipped from Prentice Hall, Minix 1.5 include only local Email, and
  310.      no Uucp nor Usenet News support. Various additional packages from the
  311.      net exist:
  312.      There are two UUCP implementations, by Fred van Kempen and by Will Rose.
  313.      Fred wrote an Email interface, UMail/WMail and a news software, WNews.
  314.      A BNews implementation and the Tass newsreader from alt.sources also
  315.      exist under Minix. All these packages are available via anonymous FTP
  316.      from archive sites.
  317.  
  318. 26.  WHY IS THE DIRECTORY ON PLAINS CALLED "oz" INSTEAD OF 386
  319.  
  320.      Plains maintains several "shadows" of other sites.  To allow easy
  321.      automatic updating of packages from the remote sites, we place
  322.      everything from that site in a directory reminiscent of that site's
  323.      name.  To absorb the remote site's files into the local directory
  324.      structure would frustrate this, and it probably wouldn't happen.
  325.  
  326. 27. WHERE CAN I GET THE NEW ANSI C COMPILER?
  327.     (from Andy Tanenbaum's posting <13286@star.cs.vu.nl> 11 Mar 92)
  328.  
  329.     There are three compilers available:
  330.  
  331.       - ANSI C, conforming to ANS X3.159-1989
  332.  
  333.       - Modula-2, conforming to
  334.           "Report on The Programming Language Modula-2", in "Programming in
  335.       Modula-2, 3rd ed." by Niklaus Wirth, Springer-verlag, 1983
  336.  
  337.       - Pascal confrming to level 1 of BSI standard BS 6192: 1982 (ISO 7185), 
  338.           with a few small exceptions
  339.  
  340.     Also, a Modula-2 makefile generator and some utilities for handling
  341.     relocatable object files are included (aal, nm, size, strip, etc).
  342.     Complete libraries for ANSI C, Pascal, and Modula 2 are provided. 
  343.  
  344.     This package is available in 4 different versions:
  345.  
  346.       - 5.25" DS/DD floppies for 8088/286/386 (4 360K floppies);
  347.       - 5.25" DS/HD floppies for 8088/286/386 (1 1.2M floppy);
  348.       - 3.5"  DS/DD floppies for 8088/286/386 (2 720K floppies);
  349.       - 3.5"  DS/DD floppies for Commodore Amiga or Atari ST (2 720K floppies).
  350.     
  351.     Many problems with the old Minix C compiler have been resolved:
  352.       - All versions have separate as and ld programs.  Asld is gone.
  353.       - Floating point is now supported
  354.       - Library is greatly improved and is ANSI conformant
  355.       - A program aal is provided to manage libraries (ranlib-like)
  356.     
  357.     The package is available from two companies:
  358.     
  359.     Transmediair Products & Support B.V.    Unipress Software
  360.     Box 297                    2025 Lincoln Highway
  361.     3720 AG  Bilthoven                Edison, NJ 08817
  362.     The Netherlands                U.S.A.
  363.     Tel: +31 30 281820                Tel: +1 908 287 2100
  364.     FAX: +31 30 292294                FAX: +1 908 287 4929
  365.                             Email: msk@unipress.com
  366.     
  367.     Transmediair charges US $200,- for the 4 floppy PC version, US $150,-
  368.     for the other versions. Unipress charges US $199,- for all versions.
  369.  
  370. 28. BUT THERE *IS* AN AMIGA DEMO DISK!
  371.  
  372.     It can be found on Fish disk 525. Fish disks are available at ftp 
  373.     sites carrying Amiga stuff.  They should also be available from various 
  374.     Amiga groups and retailers.
  375.  
  376. 29. IS THERE A WAY TO BOOT FROM A MINIX FILE SYSTEM (ON FLOPPY OR HARD
  377.     DISK?
  378.  
  379.     There are at least three utilities to do this. They all put the image
  380.     to be booted from into a normal file on a Minix file system and change
  381.     the boot block, so that it can read a file from a Minix FS and start
  382.     it.
  383.     
  384.     Shoelace is the oldest of these utilities. It includes a lot of bells
  385.     and whistles (you can check a file system, load the components of
  386.     Minix seperately, start a debugger before Minix, so you can debug
  387.     Minix at start up, ...), but is a little slow and a little difficult
  388.     to set up. I have been using it for a long time now and am quite happy
  389.     with it.
  390.     
  391.     MXboot. Sorry, don't know anything about it, except that it exists.
  392.     
  393.     Boot Monitor: This is currently the official boot tool (i.e., it is
  394.     included in 1.6.25). Faster and simpler than shoelace, and depends less
  395.     on hardware. Lets you build nice menues to boot from several kernels,
  396.     set boot options, boot from other partitions, etc. It also understands
  397.     the new file system types.
  398.  
  399. 30. I HAVE A 16MB PC, BUT MINIX RUNS OUT OF MEMORY WHILE BOOTING. WHY?
  400.  
  401.     Minix counts memory in 256 byte units and uses a 16-bit variable to do
  402.     this. So if you have 16MB of RAM, an overflow will occur and Minix will
  403.     think you have no memory at all and refuse to work. Use the universal
  404.     boot disk to boot, then look for the line 
  405.  
  406.         ext_memsize = get_ext_memsize();
  407.  
  408.     in /usr/src/kernel/cstart.c and insert something like
  409.  
  410.         if (ext_memsize >= 15360) ext_memsize = 15359;
  411.  
  412.     after it and build a new system. Alternately you can upgrade to Minix
  413.     1.6.25 or Minix-386vm, which don't have this problem.
  414.  
  415. 31. WHAT ARE THE MINIMUM HARDWARE REQUIREMENTS FOR MINIX?
  416.  
  417.     Theoretically you can run it on an XT with 512kB RAM and 2 floppies.
  418.     Unless you are particularly fond of juggling disks, you would want at
  419.     least 20MB on a hard disk, though.
  420.  
  421.     A 286 will give you memory protection and the ability to use more the
  422.     640k of memory. 2MB are recommended.
  423.  
  424.     If you have a 386 and decide to use one of the 32-bit kernels, you
  425.     should have at least 4MB RAM. For Minix-386vm 60MB of hard disk are
  426.     probably the minimum, if you want to keep the sources online.
  427.  
  428.